package com.bjc.principle.decorator.demo2;

/**
 * @program: DesignPattern
 * @description:
 * @author: bjc
 * @create: 2020-12-30 18:38
 */
public class FlayCarDecorator extends CarDecorator{
    public FlayCarDecorator(Car car) {
        super(car);
    }

    public void show() {
        this.getCar().run();
        this.fly();
    }

    public void fly(){
        System.out.println("可以飞");
    }
}
